import Vue from 'vue'
import Vuex from 'vuex'

import user from './modules/user'
import channel from './modules/channel'

Vue.use(Vuex)

export default new Vuex.Store({
  strict: true,
  state: {
    token: {}
  },
  mutations: {
    setToken(state, value) {
      state.token = value
    }
  },
  actions: {},
  modules: {
    user,
    channel
  }
})
